local unitName  =  "armhlt"

local unitDef  =  {
--Internal settings
    buildpic = "ARMHLT.DDS",
    Category = "KILLABLE",
    ObjectName = "armhlt.3do",
    name = "Heavy Laser Tower",
    Side = "TANKS",
    UnitName = "armhlt",
    script = "armhlt.cob",
	corpse = "dead",
    
--Unit limitations and properties
    BuildTime = 1000,
    Description = "Strategical unit",
    MaxDamage = 4000,
    SightDistance = 300,
	yardmap = "oooo",
	buildangle = 32700,
	airsightdistance = 1000,
	usebuildinggrounddecal = true,
	buildinggrounddecaldecayspeed = 30,
	buildinggrounddecalsizex = 4,
	buildinggrounddecalsizey = 4,
	buildinggrounddecaltype = "armhlt_aoplane.dds",
	

--Energy and metal related
    BuildCostEnergy = 0,
    BuildCostMetal = 0,
	energymake = 0,
	energyuse = 0,
	
    
--Pathfinding and related
    Acceleration = 0,
    BrakeRate = 0,
    FootprintX = 2,
    FootprintZ = 2,
    MaxSlope = 10,
    MaxWaterDepth = 0,
    
--Abilities
    Builder = 0,
    CanAttack = 1,
    CanGuard = 0,
    CanMove = 0,
    CanPatrol = 0,
    CanStop = 0,
    LeaveTracks = 0,
    Reclaimable = 0,
	canSelfDestruct  = 0,	
    
--Corpse
	featuredefs = {
		dead = {
			blocking = false,
			collisionvolumetype = "Box",
			collisionvolumescales = "42.0427246094 74.7609558105 56.8743896484",
			collisionvolumeoffsets = "-0.0445556640625 -0.0718220947266 6.04946899414",
			category = "corpses",
			damage = 999999999999,
			description = "Sentinel Wreckage",
			energy = 0,
			featuredead = "HEAP",
			featurereclamate = "SMUDGE01",
			footprintx = 2,
			footprintz = 2,
			height = 20,
			hitdensity = 100,
			metal = 269,
			object = "ARMHLT_DEAD",
			reclaimable = false,
			seqnamereclamate = "TREE1RECLAMATE",
			world = "All Worlds",
		},
	},

	sounds = {
		canceldestruct = "cancel2",
		underattack = "warning1",
		cant = {
			[1] = "cantdo4",
		},
		count = {
			[1] = "count6",
			[2] = "count5",
			[3] = "count4",
			[4] = "count3",
			[5] = "count2",
			[6] = "count1",
		},
		ok = {
			[1] = "twractv3",
		},
		select = {
			[1] = "servlrg3",
		},
	},

--Weapons and related
    ExplodeAs = "TANKDEATH",
	
	weapons = {
		[1] = {
			def = "arm_laserh1",
			BadTargetCategory = "UNKILLABLE",
			NoChaseCategory = "UNKILLABLE",
			OnlyTargetCategory = "KILLABLE",			
		},
	},
}

local weaponDefs = {
		arm_laserh1 = {
			minIntensity=1,
			areaofeffect = 0,
			beamtime = 0.15000000596046,
			corethickness = 0.20000000298023,
			craterboost = 0,
			cratermult = 0,
			explosiongenerator = "custom:LARGE_GREEN_LASER_BURN",
			firestarter = 90,
			impactonly = 1,
			impulseboost = 0.0,
			impulsefactor = 0.0,
			laserflaresize = 10,
			name = "HighEnergyLaser",
			noselfdamage = true,
			range = 400,
			reloadtime = 1,
			rgbcolor = "0 1 0",
			soundhit = "lasrhit1",
			soundstart = "Lasrmas2",
			targetmoveerror = 0.20000000298023,
			thickness = 3,
			tolerance = 10000,
			turret = true,
			weapontype = "BeamLaser",
			weaponvelocity = 2250,
			damage = {
				default = 240,
				unkillable = 0,				
			},
		},
	}

unitDef.weaponDefs = weaponDefs

return lowerkeys({ [unitName]  =  unitDef })